<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="">
<meta name="description" content="">
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<link href="./css/v6/home/index/reset.css" rel="stylesheet" type="text/css">
<link href="./css/v6/home/index/font_537271_pvh5u2glvjb.css" rel="stylesheet">
<link href="./css/v6/headerFooter/header-white.css" rel="stylesheet">
<link href="./css/v6/headerFooter/footer-white1.css" rel="stylesheet">
<link href="./themes/v4/public/css/bootstrap.min.css" rel="stylesheet">
<link href="./themes/v4/public/js/highlight.min.css" rel="stylesheet">
<title>在线模拟请求_接口数据</title>
<script src="./themes/v4/public/js/highlight.min.js" type="text/javascript" charset="utf-8"></script>
<script src="./themes/js/json.parse.js" type="text/javascript"></script>
<style>
.header-dropdown .submenu-data, .header-action .header-btn2,.header-action .header-btn1 {
	box-sizing: content-box;
}
dt {
	font-weight: normal;
}
a:hover {
	text-decoration: none;
}
.section-top, .section-top .top-search, .top-tips .top-tip-content li a,.vip-juhe, .top-tips .top-tip-content li {
	box-sizing: content-box;
}
.section-top .top-wrapper h1 {
	margin: 0;
}
.jboxmain {
	width: 1200px;
	margin: 0 auto;
	margin-top: 10px;
	margin-bottom: 70px;
}

.jboxnav {
	width: 1200px;
	margin: 0 auto;
	margin-top: 96px;
}

.jboxnav ul li {
	float: left;
	padding-right: 20px;
	padding-left: 10px;
	line-height: 35px;
	font-size: 12px;
	font-weight: lighter;
	color: #666;
	background: url('./themes/v4/public/images/boxjiantou.png') right center no-repeat
}

.jboxnav ul li.last {
	background: none;
}

.jboxnav ul li a {
	color: #666;
	text-decoration: none;
}

.jboxnav ul li a:hover {
	color: #00b7ee;
}

.feedback, .feedback2 {
	width: 100%;
	height: 35px;
	line-height: 35px;
	margin-bottom: 10px;
	border-radius: 6px;
	display: none;
	border: 1px solid rgba(169, 68, 66, 0.8);
	border-color: rgba(169, 68, 66, 0.8);
	color: rgba(169, 68, 66, 1);
	text-indent: 20px;
	outline: 0;
	outline: thin dotted \9;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(169, 68, 66, 0.6);
	-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(169, 68, 66, 0.6);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(169, 68, 66, 0.6)
}

.feedback2 {
	display: block;
}

#icon {
	display: none !important;
}
</style>
<link id="layui_layer_skinlayercss" href="./js/static/layer/skin/layer.css" rel="stylesheet">
</head>
<body>
</script>
	<header class="header">
		<div class="header-nav">
			<div class="header-menu">
				<div class="header-menu-item">
					<a class="header-title site_home" href="index.html"
						rel="noopener noreferrer">首页</a>
				</div>
				<div class="header-menu-item">
					<a class="header-title site_data_service"
						href="api" rel="noopener noreferrer">数据服务</a>
				</div>
			</div>
			<div class="header-action">
				<!-- <div class="header-search">
					<div class="header-search-container">
						<input id="devalutKeyword" type="hidden" value="驾驶证"> <input
							name="q" class="search-input" id="search-input-v6" type="text"
							maxlength="12" placeholder="驾驶证" value="" autocomplete="off">
					</div>
					<div class="header-search-btn" id="header-search-v6">
						<i class="iconfont icon-search"></i>
					</div>
				</div> -->
				<!-- <div class="header-line"></div>
				<div class="header-status">
					<a class="header-btn2" href="https://www.juhe.cn/account">个人中心</a><a
						class="header-btn1" id="logout" href="javascript:void(0)">退出</a>
				</div> -->
			</div>
		</div>
	</header>
	<div class="jboxnav">
		<ul>
			<li class="last">接口测试</li>
		</ul>
		<div class="clear"></div>
	</div>
	<div class="jboxmain">
		<div class="container">
			<form>

				<!-- <div class="form-group">
					<label class="control-label" for="apinamesel">我的数据：</label>
					<div>
						<select class="form-control  input-sm" id="datasel">
							<option selected="selected" value="277">[277]&nbsp;历史天气</option>
							<option value="246">[246]&nbsp;城际出行换乘规划</option>
						</select>
					</div>
				</div> -->

				<div class="form-group">
					<label class="control-label" for="apinamesel">接口名称：</label>
					<div>
						<input class="form-control input-sm" id="id_api_name" type="text"
							readonly="" placeholder="接口名称" value="">
					</div>
					<!-- <div>
						<select class="form-control  input-sm" id="apinamesel">
							<option value="1052">用户信息查询</option>
							<option value="1053">支持城市地区列表</option>
							<option value="1054">查询历史天气</option>
						</select>
					</div> -->
				</div>

				<div class="form-group">
					<label class=" control-label" for="apiurl">接口地址：</label>
					<div>
						<input class="form-control input-sm" id="apiurl" type="text"
							readonly="" placeholder="接口的URL" value="">
					</div>
				</div>

				<div class="form-group">
					<label class=" control-label" for="requesttypesel">请求方式：</label>
					<div>
						<select class="form-control  input-sm" id="requesttypesel">
							<!-- <option value="GET">GET</option> -->
							<option value="POST">POST</option>
						</select>
					</div>
				</div>

				<!--
                <div class="form-group">
                  <label for="responsetypesel" class=" control-label">返回格式：</label>
                  <div class="">
                        <select class="form-control  input-sm" id="responsetypesel">
                            <option value="JSON">JSON</option>
                            <option value="XML">XML</option>
                        </select>
                  </div>
                </div>
              -->
				<div class="form-group" id="id_request_params">
					<label for="params">请求参数：</label>
				</div>
				<div class="form-group">
					<button class="btn btn-success" id="boxBtn" type="button">发送请求</button>
					&nbsp;<span style="color: rgb(255, 133, 3); font-size: 12px;">（*为了准确性，所有请求均基于真实环境请求，请悉知）</span>
				</div>

				<div class="feedback" id="feedback"></div>
				<div>
					<label>请求详情：</label>
					<div>
						<pre id="requestinfo"></pre>
					</div>
				</div>
				<div>
					<label>返回内容：</label>
					<div id="returnarea">
						<pre>
							<code id="response"></code>
						</pre>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="clearfix"></div>
	<!-- <footer class="footer">
		<div class="footer-container">
			<div class="footer-bottom clearfix">
				<div class="footer-bottom-left">
					<a
						href="http://www.jsdsgsxt.gov.cn/mbm/entweb/elec/certView.shtml?siteId=301146c087f2499ca507bfa91ab143ec"
						target="_blank" rel="noopener noreferrer"> <span
						class="footer-pic1"></span>
					</a> <a
						href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32059002001776"
						target="_blank" rel="noopener noreferrer"> <span
						class="footer-pic2"></span> <span>苏公网安备 32059002001776号</span>
					</a> <span class="footer-license">增值电信业务经营许可证：苏B2-20140496</span> <a
						class="footer-icp" href="http://www.miitbeian.gov.cn"
						target="_blank" rel="noopener noreferrer"> <span>苏ICP备14006450号-3</span>
					</a>
				</div>
				<div class="footer-bottom-right">
					<span>天聚地合（苏州）数据股份有限公司&copy;版权所有</span>
				</div>
			</div>
		</div>
	</footer> -->
	<script src="./js/static/jquery/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="./js/common/Base64.js" type="text/javascript" charset="utf-8"></script>
	<script src="./js/common/getUrlParam.js" type="text/javascript" charset="utf-8"></script>
	<script src="./js/common/getParamValue.js" type="text/javascript" charset="utf-8"></script>
	<script src="./plugins/layer-v1.9.0/layer/layer.js"></script>
	<script src="./js/v6/headerFooter/header.js"></script>
	<script src="./js/module/interfaceTest.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
	
	  $("#datasel").change(function(){
	      var did = $("#datasel").val();
	      var rurl = '/box/index/id/%40id%40';
	      rurl=rurl.replace(/%40id%40/,encodeURIComponent(did));
	      window.location.href=rurl;
	  })

    
    /* $.get("http://127.0.0.1:8091/accumulative/restFul/getData",paraObj,function(e){
        var obj = json_parse(e);
        //var code = obj.code;
        var code = '1';
        if(code == '1'){
            var data = obj.data;
          
             var requestinfo = '';
            requestinfo ="请求地址："+data.url+"<br/>";
            requestinfo +="请求参数："+data.params+"<br/>";
            requestinfo +="请求方式："+data.requestType+"<br/>"; 

            if(data.isxml=='1'){
              $("#response").removeClass("json").addClass("xml");
              data.response = formatXml(data.response)
              data.response = html_encode(data.response);
              //data.response = '<code id="response" class="xml hljs">'+data.response+'</code>';
            }else{
              $("#response").removeClass("xml").addClass("json");
            } 
            //html_encode
            //$("#requestinfo").html(requestinfo);
            //$("#response").html(data.response);
            hljs.highlightBlock($("#returnarea pre code").get(0));
        }else{
            var feedback = obj.info;
            if(obj.url){
                feedback += "，<a href='"+obj.url+"'>点击这里>></a>";
            }
            $("#feedback").html(feedback).css({display:""});
        }
        $("#boxBtn").html('发送请求').removeAttr('disabled');
    }) */

})
</script>
</body>
</html>